<?php namespace App\Infra;

use App\Utils\ModelOperatorTrait;
use App\Models\Wehcat;
class WehcatManager{
	use ModelOperatorTrait;

	public function getWehcats($conditions = null,$first = false,$union = []){
		return $this->findModel(Wehcat::class,Wehcat::query()->with($union),$conditions,$first);
	}

	public function updateWehcat($conditions = null,$data = null){
		$this->update(Wehcat::class,Wehcat::query(),$conditions,$data);
	}

	public function createWehcat($data){
		$this->create(Wehcat::class,$data);
	}

	public function deleteWehcat($conditions = null){
		$this->delete(Wehcat::class,Wehcat::query(),$conditions);
	}
}